$(function(){
		});

function submitForm(){
    var evpAccount=$("input[name='evpAccount']");
    var evpPassword=$("input[name='evpPassword']");

    if(evpAccount.val()==null||evpAccount.val()==""){
        $.messager.alert('提示','请输入用户名');
        return;
    }

    if(evpPassword.val()==null||evpPassword.val()==""){
        $.messager.alert('提示','请输入用户密码');
        return;
    }

     $.ajax({
         type:"post",
         url:"/check/login",
         data:{
             username:evpAccount.val(),
             password:evpPassword=evpPassword.val()
         },
         success:function(res){
             window.location.href = "/home";
         },
         error:function (XMLHttpRequest, textStatus, errorThrown) {
               var message=XMLHttpRequest.responseJSON.message;
               $.messager.alert("提示",message,"info");
           }
     });
 }

function clearForm(){
    $('#ff').form('clear');
}